package com.elinkway.infinitemovies.bean;

import com.lvideo.http.bean.LVideoBaseBean;

import java.util.List;

/**
 * Author: liuxiaojiang
 * Date: 2016-10-28
 * Time: 10:19
 * Description: FIXME
 */
public class MainHeaderBean implements LVideoBaseBean{
    private String name;
    private String page;
    private String vt;
    private String searchQuery;
    private String cornerIcon;
    private String icon;
    private String isDefault;
    private List<ChannelNewParams> paramsList;

    public String getCornerIcon() {
        return cornerIcon;
    }

    public void setCornerIcon(String cornerIcon) {
        this.cornerIcon = cornerIcon;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getVt() {
        return vt;
    }

    public void setVt(String vt) {
        this.vt = vt;
    }

    public String getSearchQuery() {
        return searchQuery;
    }

    public void setSearchQuery(String searchQuery) {
        this.searchQuery = searchQuery;
    }

    public List<ChannelNewParams> getParamsList() {
        return paramsList;
    }

    public void setParamsList(List<ChannelNewParams> paramsList) {
        this.paramsList = paramsList;
    }

    public String getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }

    @Override
    public boolean equals(Object obj) {
        if(this == obj) {
            return true;
        }
        if(null == obj) {
            return false;
        }
        if(getClass() != obj.getClass()) {
            return false;
        }

        MainHeaderBean bean = (MainHeaderBean) obj;
        if (this.toString().equals(bean.toString())) {
            return true;
        }
        return false;
    }

    @Override
    public String toString() {
        String str = this.getName()+this.getPage()+this.getVt()+this.getCornerIcon()
                +this.getIcon()+this.getIsDefault();
        if (this.getParamsList() != null && this.getParamsList().size() > 0) {
            for (int i = 0;i <this.getParamsList().size();i++) {
                str = str + this.getParamsList().get(i).toString();
            }
        }
        return str;
    }
}
